using SM.core;
using SS;
using SS.core;
using SS.dir;
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;
using TVSGPP.core;
namespace TVSBH.func
{
	public class frmVATBill : Form
	{
		private frmWaitting objW;
		private Func objFunc = new Func();
		private DataTable objTable = new DataTable();
		private DataTable objTableBill = new DataTable();
		private Bill objBill = new Bill();
		public string userName = "";
		public string fullName = "";
		public string currCustomer = "";
		public string listBillID = "";
		private customers objCus = new customers();
		private products objProduct = new products();
		private billVAT objbillVAT = new billVAT();
		private bool isPostBack = false;
		private IContainer components = null;
		private GroupBox groupBox3;
		private DataGridView dgvBill;
		private Button btnClose;
		private DataGridView dgvProduct;
		private TextBox txtTotalMoney;
		private Label label7;
		private ContextMenuStrip cmsBill;
		private ToolStripMenuItem cmsDelProduct;
		private ToolStripSeparator toolStripSeparator1;
		private ToolStripMenuItem cmsAddBill;
		private ToolStripMenuItem cmsEditBill;
		private ToolStripSeparator toolStripSeparator2;
		private ToolStripMenuItem cmsSaveBill;
		private ToolStripMenuItem cmsPrintBill;
		private ToolStripMenuItem cmsDellBill;
		private ToolStripSeparator toolStripSeparator3;
		private ToolStripMenuItem cmsSearchBill;
		private ToolStripMenuItem cmsAddProduct;
		private ToolStripSeparator toolStripSeparator4;
		private Label label25;
		private Label label17;
		private Button btnSearchTime;
		private DateTimePicker dtpTo;
		private DateTimePicker dtpFrom;
		private Label label26;
		private TextBox txtMoney;
		private Label label10;
		private TextBox txtMoneyAfterDiscount;
		private TextBox txtDiscountOut;
		private Label label11;
		private ToolTip toolTip1;
		private Label lblCountBill;
		private ContextMenuStrip ctmJustBill;
		private ToolStripMenuItem ctmJustBillAdd;
		private ToolStripMenuItem ctmJustBillEdit;
		private ToolStripMenuItem ctmJustBillPrint;
		private ToolStripSeparator toolStripSeparator5;
		private ToolStripMenuItem ctmJustBillDel;
		private ToolStripSeparator toolStripSeparator6;
		private ToolStripMenuItem ctmJustBillSearch;
		private System.Windows.Forms.Timer timer2;
		private System.Windows.Forms.Timer timer1;
		private ToolStripMenuItem mnuPrintUsage;
		private TextBox txtTotalVAT;
		private Label label13;
		private Button btnDel;
		private Button btnPrint;
		private Button btnSave;
		private Button btnEdit;
		private Button btnAdd;
		private GroupBox groupBox1;
		private TextBox txtCusName;
		private Label label1;
		private TextBox txtComName;
		private Label label2;
		private TextBox txtCusTax;
		private Label label5;
		private TextBox txtCusAccountBank;
		private Label label4;
		private TextBox txtCusAddress;
		private Label label3;
		private DataGridViewCheckBoxColumn Status;
		private DataGridViewTextBoxColumn ID;
		private DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
		private DataGridViewTextBoxColumn Column10;
		private DataGridViewTextBoxColumn Column11;
		private DataGridViewTextBoxColumn Column12;
		private DataGridViewTextBoxColumn Column13;
		private DataGridViewTextBoxColumn Column14;
		private DataGridViewTextBoxColumn Column15;
		private DataGridViewTextBoxColumn Column16;
		private DataGridViewTextBoxColumn Column17;
		private DataGridViewTextBoxColumn Column18;
		private DataGridViewTextBoxColumn Column19;
		private DataGridViewTextBoxColumn Column24;
		private DataGridViewTextBoxColumn Column25;
		private DataGridViewTextBoxColumn Column26;
		private DataGridViewTextBoxColumn _DoctorDesease;
		private DataGridViewTextBoxColumn _CusFreeID;
		private TextBox txtID;
		private Label label6;
		private TextBox txtCusPayment;
		private Label label8;
		private ComboBox cbbBillType;
		private DataGridViewTextBoxColumn Column2;
		private DataGridViewTextBoxColumn Column1;
		private DataGridViewTextBoxColumn Column3;
		private DataGridViewTextBoxColumn Column4;
		private DataGridViewTextBoxColumn productPrice;
		private DataGridViewTextBoxColumn VATasMoney;
		private DataGridViewTextBoxColumn Column6;
		private DataGridViewTextBoxColumn Column7;
		private DataGridViewTextBoxColumn Column8;
		private DataGridViewTextBoxColumn Column9;
		private DataGridViewTextBoxColumn Column20;
		private DataGridViewTextBoxColumn Column21;
		private DataGridViewTextBoxColumn Column22;
		private DataGridViewTextBoxColumn possName;
		private DataGridViewTextBoxColumn Rate;
		private DataGridViewTextBoxColumn IdRegisters;
		private DataGridViewTextBoxColumn IdControl;
		private DataGridViewTextBoxColumn IdBisMake;
		private DataGridViewTextBoxColumn IdBisImport;
		private TabControl tabControl1;
		private TabPage tabPage1;
		private TabPage tabPage2;
		private DataGridView dgvBillVAT;
		private DataGridViewTextBoxColumn billVATID;
		private DataGridViewTextBoxColumn billVATDateCreate;
		private DataGridViewTextBoxColumn billID;
		private Label label9;
		private Label label14;
		private Label label12;
		private void showWatting()
		{
			this.objW = new frmWaitting();
			this.objW.ShowDialog();
			Thread.Sleep(40);
		}
		public frmVATBill()
		{
			this.InitializeComponent();
		}
		private void frmOutputRetail_Load(object sender, EventArgs e)
		{
			this.cbbBillType.SelectedIndex = 0;
			this.isPostBack = true;
			this.getBill("");
			this.getBillVAT();
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void frmOutputRetail_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				base.Close();
			}
		}
		private void getBill(string sql_Search)
		{
			try
			{
				this.dgvBill.AutoGenerateColumns = false;
				SqlConnection sqlConnection = new SqlConnection(Program.strConnectionString);
				string cmdText;
				if (sql_Search == "")
				{
					if (this.cbbBillType.SelectedIndex == 0)
					{
						this.dgvProduct.Columns["productPrice"].DataPropertyName = "productPrice1";
						cmdText = "SELECT 0 as Status, * FROM [TabBill] WHERE [_DoctorName] = 'NONE' AND TypeInput IN ('OUT1') AND CreateDate BETWEEN @ObjDate1 AND @objDate2 ORDER BY [CreateDate] DESC";
					}
					else
					{
						if (this.cbbBillType.SelectedIndex == 1)
						{
							this.dgvProduct.Columns["productPrice"].DataPropertyName = "productPrice2";
							cmdText = "SELECT 0 as Status, * FROM [TabBill] WHERE [_DoctorName] = 'NONE' AND TypeInput IN ('OUT4') AND CreateDate BETWEEN @ObjDate1 AND @objDate2 ORDER BY [CreateDate] DESC";
						}
						else
						{
							this.dgvProduct.Columns["productPrice"].DataPropertyName = "productPrice";
							cmdText = "SELECT 0 as Status, * FROM [TabBill] WHERE [_DoctorName] = 'NONE' AND TypeInput IN ('IN1') AND CreateDate BETWEEN @ObjDate1 AND @objDate2 ORDER BY [CreateDate] DESC";
						}
					}
				}
				else
				{
					cmdText = sql_Search + " AND [TabBill].[CreateDate] BETWEEN @ObjDate1 AND @objDate2 ORDER BY [TabBill].[CreateDate] DESC";
				}
				SqlCommand sqlCommand = new SqlCommand(cmdText, sqlConnection);
				SqlParameter sqlParameter = new SqlParameter("ObjDate1", SqlDbType.DateTime);
				SqlParameter sqlParameter2 = new SqlParameter("ObjDate2", SqlDbType.DateTime);
				sqlParameter.Value = DateTime.Parse(this.dtpFrom.Value.ToString().Substring(0, 10) + " 00:00:00 AM");
				sqlParameter2.Value = DateTime.Parse(this.dtpTo.Value.ToString().Substring(0, 10) + " 11:59:59 PM");
				sqlCommand.Parameters.Add(sqlParameter);
				sqlCommand.Parameters.Add(sqlParameter2);
				SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(sqlCommand);
				DataSet dataSet = new DataSet();
				sqlConnection.Open();
				sqlDataAdapter.Fill(dataSet);
				this.objTableBill = dataSet.Tables[0];
				this.dgvBill.DataSource = this.objTableBill;
				this.lblCountBill.Text = "Hiện có : " + dataSet.Tables[0].Rows.Count.ToString() + " HĐ";
				sqlConnection.Close();
				sqlConnection.Dispose();
				sqlDataAdapter.Dispose();
				dataSet.Dispose();
			}
			catch
			{
			}
		}
		private void getBillVAT()
		{
			try
			{
				this.dgvBillVAT.AutoGenerateColumns = false;
				SqlConnection sqlConnection = new SqlConnection(Program.strConnectionString);
				string cmdText = "SELECT 0 as Status, * FROM [TabBillVAT] WHERE [Type] = " + this.cbbBillType.SelectedIndex.ToString() + " AND DateCreate BETWEEN @ObjDate1 AND @objDate2 ORDER BY [DateCreate] DESC";
				SqlCommand sqlCommand = new SqlCommand(cmdText, sqlConnection);
				SqlParameter sqlParameter = new SqlParameter("ObjDate1", SqlDbType.DateTime);
				SqlParameter sqlParameter2 = new SqlParameter("ObjDate2", SqlDbType.DateTime);
				sqlParameter.Value = DateTime.Parse(this.dtpFrom.Value.ToString().Substring(0, 10) + " 00:00:00 AM");
				sqlParameter2.Value = DateTime.Parse(this.dtpTo.Value.ToString().Substring(0, 10) + " 11:59:59 PM");
				sqlCommand.Parameters.Add(sqlParameter);
				sqlCommand.Parameters.Add(sqlParameter2);
				SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(sqlCommand);
				DataSet dataSet = new DataSet();
				sqlConnection.Open();
				sqlDataAdapter.Fill(dataSet);
				this.dgvBillVAT.DataSource = dataSet.Tables[0];
				sqlConnection.Close();
				sqlConnection.Dispose();
				sqlDataAdapter.Dispose();
			}
			catch
			{
			}
		}
		private void dgvBill_CellEnter(object sender, DataGridViewCellEventArgs e)
		{
			if (this.isPostBack && this.tabControl1.SelectedIndex == 1)
			{
				this.listBillID = "";
				this.dgvProduct.AutoGenerateColumns = false;
				for (int i = 0; i < this.dgvBill.RowCount; i++)
				{
					if (this.dgvBill.Rows[i].Cells["Status"].Value.ToString() == "1")
					{
						this.listBillID = this.listBillID + "'" + this.dgvBill.Rows[i].Cells["ID"].Value.ToString() + "',";
					}
				}
				if (this.listBillID.Trim() != "")
				{
					this.listBillID = this.listBillID.Remove(this.listBillID.Trim().Length - 1, 1);
				}
				else
				{
					this.listBillID = "'" + this.objTableBill.Rows[e.RowIndex]["ID"].ToString() + "'";
				}
				this.objTable = new DataTable();
				this.objTable = this.objBill.getDetailBillVAT(this.listBillID);
				this.dgvProduct.DataSource = this.objTable;
				this.getInformation(this.objTableBill.Rows[e.RowIndex]["ID"].ToString());
				this.txtDiscountOut.Text = this.objTableBill.Rows[e.RowIndex]["Discount"].ToString();
				double num = 0.0;
				try
				{
					double num2 = double.Parse(this.txtMoney.Text) * double.Parse(this.txtDiscountOut.Text) / 100.0;
					num = this.caculaterTotalVAT();
					this.txtMoneyAfterDiscount.Text = string.Format(Program.lenAffterDecimal, num2);
				}
				catch
				{
					this.txtMoneyAfterDiscount.Text = "0";
				}
				try
				{
					this.txtTotalVAT.Text = string.Format(Program.lenAffterDecimal, num);
					this.txtTotalMoney.Text = string.Format(Program.lenAffterDecimal, this.caculaterTotalMoney());
					this.txtMoney.Text = string.Format(Program.lenAffterDecimal, double.Parse(this.txtTotalMoney.Text) - double.Parse(this.txtTotalVAT.Text));
				}
				catch
				{
					this.txtTotalMoney.Text = "0";
					this.txtTotalVAT.Text = "0";
					this.txtMoney.Text = "0";
				}
			}
		}
		private double caculaterTotalVAT()
		{
			double num = 0.0;
			for (int i = 0; i < this.objTable.Rows.Count; i++)
			{
				num += double.Parse(this.objTable.Rows[i]["VATasMoney"].ToString().Replace(",", ""));
			}
			return num;
		}
		private double caculaterTotalMoney()
		{
			double num = 0.0;
			for (int i = 0; i < this.objTable.Rows.Count; i++)
			{
				num += double.Parse(this.objTable.Rows[i]["productMoney"].ToString().Replace(",", ""));
			}
			return num;
		}
		private void btnSearchTime_Click(object sender, EventArgs e)
		{
			this.getBill("");
		}
		private void btnPrint_Click(object sender, EventArgs e)
		{
			MessageBox.Show("Quý khách vui lòng gửi mẫu hoá đơn tới TVS để được tích hợp!\r\n\r\nMẫu hoá đơn được gửi theo quy định về việc Doanh nghiệp tự in hoá đơn VAT", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
		}
		private void btnPrint_EnabledChanged(object sender, EventArgs e)
		{
		}
		private void btnSave_Click(object sender, EventArgs e)
		{
			if (this.txtID.Text.Trim() == "")
			{
				MessageBox.Show("Bạn chưa nhập số hoá đơn !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				this.txtID.Focus();
			}
			else
			{
				if (this.txtCusName.Text.Trim() == "")
				{
					MessageBox.Show("Bạn chưa nhập tên khách hàng !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
					this.txtCusName.Focus();
				}
				else
				{
					if (this.txtCusTax.Text.Trim() == "")
					{
						MessageBox.Show("Bạn chưa nhập mã số thuế !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
						this.txtCusTax.Focus();
					}
					else
					{
						if (this.objbillVAT.action(this.txtID.Text, DateTime.Now, this.listBillID, this.txtCusName.Text, this.txtComName.Text, this.txtCusAddress.Text, this.txtCusAccountBank.Text, this.txtCusPayment.Text, this.txtCusTax.Text, this.cbbBillType.SelectedIndex) == 1)
						{
							MessageBox.Show("Việc lưu hoá đơn không thực hiện được !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Hand);
						}
						else
						{
							this.btnSave.Enabled = false;
							this.btnPrint.Enabled = false;
							this.btnDel.Enabled = false;
						}
					}
				}
			}
		}
		private void btnSave_EnabledChanged(object sender, EventArgs e)
		{
		}
		private void btnEdit_Click(object sender, EventArgs e)
		{
			this.btnSave.Enabled = true;
			this.btnPrint.Enabled = true;
			this.btnDel.Enabled = true;
		}
		private void btnAdd_Click(object sender, EventArgs e)
		{
			if (this.txtID.Text.Trim() == "")
			{
				this.txtID.ReadOnly = false;
				this.btnSave.Enabled = true;
				this.txtID.Focus();
			}
			else
			{
				MessageBox.Show("Chọn hoá đơn Xuất - Nhập cần Thu / Xuất hoá đơn VAT", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
			}
		}
		public void getInformation(string billID)
		{
			try
			{
				this.txtID.Text = "";
				this.txtCusName.Text = "";
				this.txtComName.Text = "";
				this.txtCusAddress.Text = "";
				this.txtCusAccountBank.Text = "";
				this.txtCusTax.Text = "";
				this.txtCusPayment.Text = "";
				SqlConnection sqlConnection = new SqlConnection(Program.strConnectionString);
				sqlConnection.Open();
				SqlCommand sqlCommand = sqlConnection.CreateCommand();
				sqlCommand.CommandText = "SELECT * FROM TabBillVAT WHERE CHARINDEX('" + billID + "',billID) > 0";
				SqlDataReader sqlDataReader = sqlCommand.ExecuteReader();
				while (sqlDataReader.Read())
				{
					this.txtID.Text = sqlDataReader["ID"].ToString();
					this.txtCusName.Text = sqlDataReader["CusName"].ToString();
					this.txtComName.Text = sqlDataReader["ComName"].ToString();
					this.txtCusAddress.Text = sqlDataReader["CusAddress"].ToString();
					this.txtCusAccountBank.Text = sqlDataReader["CusAccountBank"].ToString();
					this.txtCusTax.Text = sqlDataReader["CusTax"].ToString();
					this.txtCusPayment.Text = sqlDataReader["CusPayment"].ToString();
					this.txtID.ReadOnly = true;
					this.btnEdit.Enabled = true;
					this.btnDel.Enabled = true;
					this.btnPrint.Enabled = true;
				}
				sqlDataReader.Close();
				sqlConnection.Close();
				sqlConnection.Dispose();
			}
			catch
			{
			}
		}
		private void cbbBillType_SelectedValueChanged(object sender, EventArgs e)
		{
			this.getBill("");
			this.getBillVAT();
		}
		private void btnDel_Click(object sender, EventArgs e)
		{
			if (this.txtID.Text.Trim() != "")
			{
				if (MessageBox.Show("Bạn có chắc chắn muốn xoá hoá đơn này không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
				{
					this.objbillVAT.delBillVAT(this.txtID.Text);
				}
			}
		}
		private void dgvBillVAT_CellEnter(object sender, DataGridViewCellEventArgs e)
		{
			if (this.isPostBack)
			{
				this.dgvProduct.AutoGenerateColumns = false;
				this.listBillID = this.dgvBillVAT.Rows[e.RowIndex].Cells["billID"].Value.ToString();
				this.objTable = new DataTable();
				this.objTable = this.objBill.getDetailBillVAT(this.listBillID);
				this.dgvProduct.DataSource = this.objTable;
				this.getInformation(this.listBillID.Remove(this.listBillID.Length - 1, 1).Remove(0, 1));
				double num = 0.0;
				try
				{
					double num2 = double.Parse(this.txtMoney.Text) * double.Parse(this.txtDiscountOut.Text) / 100.0;
					num = this.caculaterTotalVAT();
					this.txtMoneyAfterDiscount.Text = string.Format(Program.lenAffterDecimal, num2);
				}
				catch
				{
					this.txtMoneyAfterDiscount.Text = "0";
				}
				try
				{
					this.txtTotalVAT.Text = string.Format(Program.lenAffterDecimal, num);
					this.txtTotalMoney.Text = string.Format(Program.lenAffterDecimal, this.caculaterTotalMoney());
					this.txtMoney.Text = string.Format(Program.lenAffterDecimal, double.Parse(this.txtTotalMoney.Text) - double.Parse(this.txtTotalVAT.Text));
				}
				catch
				{
					this.txtTotalMoney.Text = "0";
					this.txtTotalVAT.Text = "0";
					this.txtMoney.Text = "0";
				}
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.components = new Container();
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmVATBill));
			DataGridViewCellStyle dataGridViewCellStyle = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle4 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle5 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle6 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle7 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle8 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle9 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle10 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle11 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle12 = new DataGridViewCellStyle();
			this.groupBox3 = new GroupBox();
			this.label25 = new Label();
			this.label17 = new Label();
			this.btnSearchTime = new Button();
			this.dtpTo = new DateTimePicker();
			this.dtpFrom = new DateTimePicker();
			this.lblCountBill = new Label();
			this.dgvBill = new DataGridView();
			this.Status = new DataGridViewCheckBoxColumn();
			this.ID = new DataGridViewTextBoxColumn();
			this.dataGridViewTextBoxColumn7 = new DataGridViewTextBoxColumn();
			this.Column10 = new DataGridViewTextBoxColumn();
			this.Column11 = new DataGridViewTextBoxColumn();
			this.Column12 = new DataGridViewTextBoxColumn();
			this.Column13 = new DataGridViewTextBoxColumn();
			this.Column14 = new DataGridViewTextBoxColumn();
			this.Column15 = new DataGridViewTextBoxColumn();
			this.Column16 = new DataGridViewTextBoxColumn();
			this.Column17 = new DataGridViewTextBoxColumn();
			this.Column18 = new DataGridViewTextBoxColumn();
			this.Column19 = new DataGridViewTextBoxColumn();
			this.Column24 = new DataGridViewTextBoxColumn();
			this.Column25 = new DataGridViewTextBoxColumn();
			this.Column26 = new DataGridViewTextBoxColumn();
			this._DoctorDesease = new DataGridViewTextBoxColumn();
			this._CusFreeID = new DataGridViewTextBoxColumn();
			this.ctmJustBill = new ContextMenuStrip(this.components);
			this.ctmJustBillAdd = new ToolStripMenuItem();
			this.ctmJustBillEdit = new ToolStripMenuItem();
			this.ctmJustBillPrint = new ToolStripMenuItem();
			this.mnuPrintUsage = new ToolStripMenuItem();
			this.toolStripSeparator5 = new ToolStripSeparator();
			this.ctmJustBillDel = new ToolStripMenuItem();
			this.toolStripSeparator6 = new ToolStripSeparator();
			this.ctmJustBillSearch = new ToolStripMenuItem();
			this.btnClose = new Button();
			this.dgvProduct = new DataGridView();
			this.Column2 = new DataGridViewTextBoxColumn();
			this.Column1 = new DataGridViewTextBoxColumn();
			this.Column3 = new DataGridViewTextBoxColumn();
			this.Column4 = new DataGridViewTextBoxColumn();
			this.productPrice = new DataGridViewTextBoxColumn();
			this.VATasMoney = new DataGridViewTextBoxColumn();
			this.Column6 = new DataGridViewTextBoxColumn();
			this.Column7 = new DataGridViewTextBoxColumn();
			this.Column8 = new DataGridViewTextBoxColumn();
			this.Column9 = new DataGridViewTextBoxColumn();
			this.Column20 = new DataGridViewTextBoxColumn();
			this.Column21 = new DataGridViewTextBoxColumn();
			this.Column22 = new DataGridViewTextBoxColumn();
			this.possName = new DataGridViewTextBoxColumn();
			this.Rate = new DataGridViewTextBoxColumn();
			this.IdRegisters = new DataGridViewTextBoxColumn();
			this.IdControl = new DataGridViewTextBoxColumn();
			this.IdBisMake = new DataGridViewTextBoxColumn();
			this.IdBisImport = new DataGridViewTextBoxColumn();
			this.cmsBill = new ContextMenuStrip(this.components);
			this.cmsAddProduct = new ToolStripMenuItem();
			this.toolStripSeparator4 = new ToolStripSeparator();
			this.cmsDelProduct = new ToolStripMenuItem();
			this.toolStripSeparator1 = new ToolStripSeparator();
			this.cmsAddBill = new ToolStripMenuItem();
			this.cmsEditBill = new ToolStripMenuItem();
			this.toolStripSeparator2 = new ToolStripSeparator();
			this.cmsSaveBill = new ToolStripMenuItem();
			this.cmsPrintBill = new ToolStripMenuItem();
			this.cmsDellBill = new ToolStripMenuItem();
			this.toolStripSeparator3 = new ToolStripSeparator();
			this.cmsSearchBill = new ToolStripMenuItem();
			this.txtTotalMoney = new TextBox();
			this.label7 = new Label();
			this.label26 = new Label();
			this.txtMoney = new TextBox();
			this.label10 = new Label();
			this.txtMoneyAfterDiscount = new TextBox();
			this.txtDiscountOut = new TextBox();
			this.label11 = new Label();
			this.toolTip1 = new ToolTip(this.components);
			this.timer2 = new System.Windows.Forms.Timer(this.components);
			this.timer1 = new System.Windows.Forms.Timer(this.components);
			this.txtTotalVAT = new TextBox();
			this.label13 = new Label();
			this.btnDel = new Button();
			this.btnPrint = new Button();
			this.btnSave = new Button();
			this.btnEdit = new Button();
			this.btnAdd = new Button();
			this.groupBox1 = new GroupBox();
			this.label14 = new Label();
			this.label12 = new Label();
			this.label9 = new Label();
			this.txtCusPayment = new TextBox();
			this.label8 = new Label();
			this.txtID = new TextBox();
			this.label6 = new Label();
			this.txtCusTax = new TextBox();
			this.label5 = new Label();
			this.txtCusAccountBank = new TextBox();
			this.label4 = new Label();
			this.txtCusAddress = new TextBox();
			this.label3 = new Label();
			this.txtComName = new TextBox();
			this.label2 = new Label();
			this.txtCusName = new TextBox();
			this.label1 = new Label();
			this.cbbBillType = new ComboBox();
			this.tabControl1 = new TabControl();
			this.tabPage1 = new TabPage();
			this.dgvBillVAT = new DataGridView();
			this.billVATID = new DataGridViewTextBoxColumn();
			this.billVATDateCreate = new DataGridViewTextBoxColumn();
			this.billID = new DataGridViewTextBoxColumn();
			this.tabPage2 = new TabPage();
			this.groupBox3.SuspendLayout();
			((ISupportInitialize)this.dgvBill).BeginInit();
			this.ctmJustBill.SuspendLayout();
			((ISupportInitialize)this.dgvProduct).BeginInit();
			this.cmsBill.SuspendLayout();
			this.groupBox1.SuspendLayout();
			this.tabControl1.SuspendLayout();
			this.tabPage1.SuspendLayout();
			((ISupportInitialize)this.dgvBillVAT).BeginInit();
			this.tabPage2.SuspendLayout();
			base.SuspendLayout();
			this.groupBox3.Controls.Add(this.label25);
			this.groupBox3.Controls.Add(this.label17);
			this.groupBox3.Controls.Add(this.btnSearchTime);
			this.groupBox3.Controls.Add(this.dtpTo);
			this.groupBox3.Controls.Add(this.dtpFrom);
			this.groupBox3.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.groupBox3.Location = new System.Drawing.Point(7, 4);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new Size(249, 83);
			this.groupBox3.TabIndex = 17;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Tìm kiếm";
			this.label25.AutoSize = true;
			this.label25.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.label25.Location = new System.Drawing.Point(5, 26);
			this.label25.Name = "label25";
			this.label25.Size = new Size(28, 15);
			this.label25.TabIndex = 152;
			this.label25.Text = "Từ :";
			this.label17.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
//			this.label17.Image = (Image)componentResourceManager.GetObject("label17.Image");
			this.label17.Location = new System.Drawing.Point(124, 22);
			this.label17.Name = "label17";
			this.label17.Size = new Size(20, 25);
			this.label17.TabIndex = 151;
			this.btnSearchTime.BackColor = SystemColors.ButtonFace;
			this.btnSearchTime.FlatAppearance.BorderColor = Color.FromArgb(0, 192, 192);
			this.btnSearchTime.FlatStyle = FlatStyle.Flat;
			this.btnSearchTime.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnSearchTime.Location = new System.Drawing.Point(35, 48);
			this.btnSearchTime.Name = "btnSearchTime";
			this.btnSearchTime.Size = new Size(198, 28);
			this.btnSearchTime.TabIndex = 20;
			this.btnSearchTime.Text = "Tìm kiếm hóa đơn";
			this.btnSearchTime.UseVisualStyleBackColor = false;
			this.btnSearchTime.Click += new EventHandler(this.btnSearchTime_Click);
			this.dtpTo.CustomFormat = "dd/MM/yyyy";
			this.dtpTo.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.dtpTo.Format = DateTimePickerFormat.Custom;
			this.dtpTo.Location = new System.Drawing.Point(152, 23);
			this.dtpTo.Name = "dtpTo";
			this.dtpTo.Size = new Size(81, 21);
			this.dtpTo.TabIndex = 19;
			this.dtpFrom.CustomFormat = "dd/MM/yyyy";
			this.dtpFrom.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.dtpFrom.Format = DateTimePickerFormat.Custom;
			this.dtpFrom.Location = new System.Drawing.Point(35, 23);
			this.dtpFrom.Name = "dtpFrom";
			this.dtpFrom.Size = new Size(81, 21);
			this.dtpFrom.TabIndex = 18;
			this.lblCountBill.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.lblCountBill.BackColor = Color.White;
			this.lblCountBill.BorderStyle = BorderStyle.Fixed3D;
			this.lblCountBill.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.lblCountBill.ForeColor = SystemColors.MenuText;
			this.lblCountBill.Location = new System.Drawing.Point(7, 574);
			this.lblCountBill.Name = "lblCountBill";
			this.lblCountBill.Size = new Size(249, 21);
			this.lblCountBill.TabIndex = 155;
			this.lblCountBill.TextAlign = ContentAlignment.MiddleCenter;
			this.dgvBill.AllowUserToAddRows = false;
			this.dgvBill.AllowUserToDeleteRows = false;
			this.dgvBill.AllowUserToOrderColumns = true;
			this.dgvBill.AllowUserToResizeColumns = false;
			this.dgvBill.AllowUserToResizeRows = false;
			dataGridViewCellStyle.BackColor = Color.FromArgb(192, 255, 255);
			dataGridViewCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvBill.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle;
			this.dgvBill.BackgroundColor = Color.White;
			this.dgvBill.BorderStyle = BorderStyle.Fixed3D;
			this.dgvBill.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.dgvBill.Columns.AddRange(new DataGridViewColumn[]
			{
				this.Status,
				this.ID,
				this.dataGridViewTextBoxColumn7,
				this.Column10,
				this.Column11,
				this.Column12,
				this.Column13,
				this.Column14,
				this.Column15,
				this.Column16,
				this.Column17,
				this.Column18,
				this.Column19,
				this.Column24,
				this.Column25,
				this.Column26,
				this._DoctorDesease,
				this._CusFreeID
			});
			this.dgvBill.ContextMenuStrip = this.ctmJustBill;
			this.dgvBill.Cursor = Cursors.Hand;
			this.dgvBill.Dock = DockStyle.Fill;
			this.dgvBill.EnableHeadersVisualStyles = false;
			this.dgvBill.Location = new System.Drawing.Point(3, 3);
			this.dgvBill.Name = "dgvBill";
			this.dgvBill.RowHeadersVisible = false;
			this.dgvBill.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
			this.dgvBill.RowTemplate.DefaultCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvBill.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
			this.dgvBill.Size = new Size(235, 415);
			this.dgvBill.TabIndex = 21;
			this.dgvBill.CellEnter += new DataGridViewCellEventHandler(this.dgvBill_CellEnter);
			this.Status.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Status.DataPropertyName = "Status";
			this.Status.HeaderText = "-:-";
			this.Status.MinimumWidth = 24;
			this.Status.Name = "Status";
			this.Status.Width = 24;
			this.ID.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
			this.ID.DataPropertyName = "ID";
			this.ID.HeaderText = "Hoá đơn";
			this.ID.MinimumWidth = 120;
			this.ID.Name = "ID";
			this.dataGridViewTextBoxColumn7.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.dataGridViewTextBoxColumn7.DataPropertyName = "CreateDate";
			dataGridViewCellStyle2.Format = "D";
			dataGridViewCellStyle2.NullValue = null;
			this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle2;
			this.dataGridViewTextBoxColumn7.HeaderText = "Ngày lập";
			this.dataGridViewTextBoxColumn7.MinimumWidth = 88;
			this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
			this.dataGridViewTextBoxColumn7.Width = 88;
			this.Column10.DataPropertyName = "TotalMoney";
			this.Column10.HeaderText = "TotalMoney";
			this.Column10.Name = "Column10";
			this.Column10.Visible = false;
			this.Column11.DataPropertyName = "TypeInput";
			this.Column11.HeaderText = "TypeInput";
			this.Column11.Name = "Column11";
			this.Column11.Visible = false;
			this.Column12.DataPropertyName = "WID";
			this.Column12.HeaderText = "WID";
			this.Column12.Name = "Column12";
			this.Column12.Visible = false;
			this.Column13.DataPropertyName = "Note";
			this.Column13.HeaderText = "Note";
			this.Column13.Name = "Column13";
			this.Column13.Visible = false;
			this.Column14.DataPropertyName = "PID";
			this.Column14.HeaderText = "PID";
			this.Column14.Name = "Column14";
			this.Column14.Visible = false;
			this.Column15.HeaderText = "Tên khách hàng";
			this.Column15.Name = "Column15";
			this.Column15.Visible = false;
			this.Column16.HeaderText = "Tuổi";
			this.Column16.Name = "Column16";
			this.Column16.Visible = false;
			this.Column17.HeaderText = "Giới tính";
			this.Column17.Name = "Column17";
			this.Column17.Visible = false;
			this.Column18.HeaderText = "Địa chỉ";
			this.Column18.Name = "Column18";
			this.Column18.Visible = false;
			this.Column19.HeaderText = "Điện thoại";
			this.Column19.Name = "Column19";
			this.Column19.Visible = false;
			this.Column24.DataPropertyName = "UserName";
			this.Column24.HeaderText = "Tài khoản";
			this.Column24.Name = "Column24";
			this.Column24.Visible = false;
			this.Column25.DataPropertyName = "FullName";
			this.Column25.HeaderText = "Tên tài khoản";
			this.Column25.Name = "Column25";
			this.Column25.Visible = false;
			this.Column26.DataPropertyName = "Printed";
			this.Column26.HeaderText = "Printed";
			this.Column26.Name = "Column26";
			this.Column26.Visible = false;
			this._DoctorDesease.DataPropertyName = "_DoctorDesease";
			this._DoctorDesease.HeaderText = "_DoctorDesease";
			this._DoctorDesease.Name = "_DoctorDesease";
			this._DoctorDesease.Visible = false;
			this._CusFreeID.DataPropertyName = "_CusFreeID";
			this._CusFreeID.HeaderText = "_CusFreeID";
			this._CusFreeID.Name = "_CusFreeID";
			this._CusFreeID.Visible = false;
			this.ctmJustBill.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.ctmJustBill.Items.AddRange(new ToolStripItem[]
			{
				this.ctmJustBillAdd,
				this.ctmJustBillEdit,
				this.ctmJustBillPrint,
				this.mnuPrintUsage,
				this.toolStripSeparator5,
				this.ctmJustBillDel,
				this.toolStripSeparator6,
				this.ctmJustBillSearch
			});
			this.ctmJustBill.Name = "ctmJustBill";
			this.ctmJustBill.Size = new Size(198, 148);
			this.ctmJustBillAdd.Name = "ctmJustBillAdd";
			this.ctmJustBillAdd.Size = new Size(197, 22);
			this.ctmJustBillAdd.Text = "Thêm hoá đơn";
			this.ctmJustBillEdit.Name = "ctmJustBillEdit";
			this.ctmJustBillEdit.Size = new Size(197, 22);
			this.ctmJustBillEdit.Text = "Sửa hoá đơn";
			this.ctmJustBillPrint.Name = "ctmJustBillPrint";
			this.ctmJustBillPrint.Size = new Size(197, 22);
			this.ctmJustBillPrint.Text = "Xem và In hoá đơn";
			this.mnuPrintUsage.Name = "mnuPrintUsage";
			this.mnuPrintUsage.Size = new Size(197, 22);
			this.mnuPrintUsage.Text = "In hướng dẫn sử dụng";
			this.toolStripSeparator5.Name = "toolStripSeparator5";
			this.toolStripSeparator5.Size = new Size(194, 6);
			this.ctmJustBillDel.Name = "ctmJustBillDel";
			this.ctmJustBillDel.Size = new Size(197, 22);
			this.ctmJustBillDel.Text = "Xoá hoá đơn";
			this.toolStripSeparator6.Name = "toolStripSeparator6";
			this.toolStripSeparator6.Size = new Size(194, 6);
			this.ctmJustBillSearch.Name = "ctmJustBillSearch";
			this.ctmJustBillSearch.Size = new Size(197, 22);
			this.ctmJustBillSearch.Text = "Tìm kiếm hoá đơn";
			this.btnClose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnClose.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnClose.Location = new System.Drawing.Point(832, 566);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new Size(111, 30);
			this.btnClose.TabIndex = 22;
			this.btnClose.Text = "Thoát [ESC]";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new EventHandler(this.btnClose_Click);
			this.dgvProduct.AllowUserToAddRows = false;
			this.dgvProduct.AllowUserToDeleteRows = false;
			this.dgvProduct.AllowUserToOrderColumns = true;
			this.dgvProduct.AllowUserToResizeColumns = false;
			this.dgvProduct.AllowUserToResizeRows = false;
			dataGridViewCellStyle3.BackColor = Color.White;
			dataGridViewCellStyle3.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
			this.dgvProduct.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.dgvProduct.BackgroundColor = Color.White;
			this.dgvProduct.BorderStyle = BorderStyle.Fixed3D;
			this.dgvProduct.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
			this.dgvProduct.Columns.AddRange(new DataGridViewColumn[]
			{
				this.Column2,
				this.Column1,
				this.Column3,
				this.Column4,
				this.productPrice,
				this.VATasMoney,
				this.Column6,
				this.Column7,
				this.Column8,
				this.Column9,
				this.Column20,
				this.Column21,
				this.Column22,
				this.possName,
				this.Rate,
				this.IdRegisters,
				this.IdControl,
				this.IdBisMake,
				this.IdBisImport
			});
			this.dgvProduct.ContextMenuStrip = this.cmsBill;
			this.dgvProduct.Cursor = Cursors.Hand;
			this.dgvProduct.EnableHeadersVisualStyles = false;
			this.dgvProduct.Location = new System.Drawing.Point(262, 141);
			this.dgvProduct.MultiSelect = false;
			this.dgvProduct.Name = "dgvProduct";
			this.dgvProduct.ReadOnly = true;
			this.dgvProduct.RowHeadersVisible = false;
			this.dgvProduct.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
			this.dgvProduct.RowTemplate.DefaultCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.dgvProduct.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
			this.dgvProduct.Size = new Size(681, 326);
			this.dgvProduct.TabIndex = 8;
			this.Column2.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
			this.Column2.DataPropertyName = "productName";
			this.Column2.HeaderText = "Sản phẩm";
			this.Column2.Name = "Column2";
			this.Column2.ReadOnly = true;
			this.Column2.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column1.DataPropertyName = "Packet";
			this.Column1.HeaderText = "Số lô";
			this.Column1.MinimumWidth = 105;
			this.Column1.Name = "Column1";
			this.Column1.ReadOnly = true;
			this.Column1.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column1.Width = 105;
			this.Column3.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column3.DataPropertyName = "productUnit";
			this.Column3.HeaderText = "Đơn vị tính";
			this.Column3.MinimumWidth = 130;
			this.Column3.Name = "Column3";
			this.Column3.ReadOnly = true;
			this.Column3.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column3.Width = 130;
			this.Column4.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column4.DataPropertyName = "productNumber";
			dataGridViewCellStyle4.Alignment = DataGridViewContentAlignment.MiddleRight;
			dataGridViewCellStyle4.Format = "N0";
			dataGridViewCellStyle4.NullValue = "0";
			this.Column4.DefaultCellStyle = dataGridViewCellStyle4;
			this.Column4.HeaderText = "Số lượng";
			this.Column4.MinimumWidth = 92;
			this.Column4.Name = "Column4";
			this.Column4.ReadOnly = true;
			this.Column4.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column4.Width = 92;
			this.productPrice.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.productPrice.DataPropertyName = "productPrice2";
			dataGridViewCellStyle5.Alignment = DataGridViewContentAlignment.MiddleRight;
			dataGridViewCellStyle5.Format = "N0";
			dataGridViewCellStyle5.NullValue = null;
			this.productPrice.DefaultCellStyle = dataGridViewCellStyle5;
			this.productPrice.HeaderText = "Đơn giá";
			this.productPrice.MinimumWidth = 85;
			this.productPrice.Name = "productPrice";
			this.productPrice.ReadOnly = true;
			this.productPrice.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.productPrice.Width = 85;
			this.VATasMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.VATasMoney.DataPropertyName = "VATasMoney";
			dataGridViewCellStyle6.Alignment = DataGridViewContentAlignment.MiddleRight;
			dataGridViewCellStyle6.Format = "N2";
			dataGridViewCellStyle6.NullValue = "0";
			this.VATasMoney.DefaultCellStyle = dataGridViewCellStyle6;
			this.VATasMoney.HeaderText = "  VAT";
			this.VATasMoney.MinimumWidth = 85;
			this.VATasMoney.Name = "VATasMoney";
			this.VATasMoney.ReadOnly = true;
			this.VATasMoney.Width = 85;
			this.Column6.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column6.DataPropertyName = "productMoney";
			dataGridViewCellStyle7.Alignment = DataGridViewContentAlignment.MiddleRight;
			dataGridViewCellStyle7.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			dataGridViewCellStyle7.ForeColor = Color.Blue;
			dataGridViewCellStyle7.Format = "N0";
			dataGridViewCellStyle7.NullValue = null;
			this.Column6.DefaultCellStyle = dataGridViewCellStyle7;
			this.Column6.HeaderText = "Thành tiền";
			this.Column6.MinimumWidth = 110;
			this.Column6.Name = "Column6";
			this.Column6.ReadOnly = true;
			this.Column6.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column6.Width = 110;
			this.Column7.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column7.DataPropertyName = "ProductDate";
			dataGridViewCellStyle8.Format = "dd/MM/yyyy";
			this.Column7.DefaultCellStyle = dataGridViewCellStyle8;
			this.Column7.HeaderText = "Ngày SX";
			this.Column7.MinimumWidth = 80;
			this.Column7.Name = "Column7";
			this.Column7.ReadOnly = true;
			this.Column7.Visible = false;
			this.Column7.Width = 80;
			this.Column8.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column8.DataPropertyName = "ProductExpiryDate";
			dataGridViewCellStyle9.Format = "dd/MM/yyyy";
			this.Column8.DefaultCellStyle = dataGridViewCellStyle9;
			this.Column8.HeaderText = "Hạn dùng";
			this.Column8.MinimumWidth = 90;
			this.Column8.Name = "Column8";
			this.Column8.ReadOnly = true;
			this.Column8.Visible = false;
			this.Column8.Width = 90;
			this.Column9.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column9.DataPropertyName = "Pid";
			this.Column9.HeaderText = "Mã sản phẩm";
			this.Column9.Name = "Column9";
			this.Column9.ReadOnly = true;
			this.Column9.Visible = false;
			this.Column20.DataPropertyName = "productPrice1";
			this.Column20.HeaderText = "Giá bán buôn";
			this.Column20.Name = "Column20";
			this.Column20.ReadOnly = true;
			this.Column20.Visible = false;
			this.Column21.DataPropertyName = "productPrice";
			this.Column21.HeaderText = "Giá nhập";
			this.Column21.Name = "Column21";
			this.Column21.ReadOnly = true;
			this.Column21.Visible = false;
			this.Column22.DataPropertyName = "NationalID";
			this.Column22.HeaderText = "NationalID";
			this.Column22.Name = "Column22";
			this.Column22.ReadOnly = true;
			this.Column22.Visible = false;
			this.possName.DataPropertyName = "possName";
			this.possName.HeaderText = "possName";
			this.possName.Name = "possName";
			this.possName.ReadOnly = true;
			this.possName.Visible = false;
			this.Rate.DataPropertyName = "Rate";
			dataGridViewCellStyle10.Alignment = DataGridViewContentAlignment.MiddleRight;
			dataGridViewCellStyle10.NullValue = "1";
			this.Rate.DefaultCellStyle = dataGridViewCellStyle10;
			this.Rate.HeaderText = "Rate";
			this.Rate.Name = "Rate";
			this.Rate.ReadOnly = true;
			this.Rate.Visible = false;
			this.IdRegisters.DataPropertyName = "IdRegisters";
			this.IdRegisters.HeaderText = "IdRegisters";
			this.IdRegisters.Name = "IdRegisters";
			this.IdRegisters.ReadOnly = true;
			this.IdRegisters.Visible = false;
			this.IdControl.DataPropertyName = "IdControl";
			this.IdControl.HeaderText = "IdControl";
			this.IdControl.Name = "IdControl";
			this.IdControl.ReadOnly = true;
			this.IdControl.Visible = false;
			this.IdBisMake.DataPropertyName = "IdBisMake";
			this.IdBisMake.HeaderText = "IdBisMake";
			this.IdBisMake.Name = "IdBisMake";
			this.IdBisMake.ReadOnly = true;
			this.IdBisMake.Visible = false;
			this.IdBisImport.DataPropertyName = "IdBisImport";
			this.IdBisImport.HeaderText = "IdBisImport";
			this.IdBisImport.Name = "IdBisImport";
			this.IdBisImport.ReadOnly = true;
			this.IdBisImport.Visible = false;
			this.cmsBill.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			this.cmsBill.Items.AddRange(new ToolStripItem[]
			{
				this.cmsAddProduct,
				this.toolStripSeparator4,
				this.cmsDelProduct,
				this.toolStripSeparator1,
				this.cmsAddBill,
				this.cmsEditBill,
				this.toolStripSeparator2,
				this.cmsSaveBill,
				this.cmsPrintBill,
				this.cmsDellBill,
				this.toolStripSeparator3,
				this.cmsSearchBill
			});
			this.cmsBill.Name = "cmsBill";
			this.cmsBill.Size = new Size(263, 204);
			this.cmsAddProduct.Name = "cmsAddProduct";
			this.cmsAddProduct.Size = new Size(262, 22);
			this.cmsAddProduct.Text = "Thêm sản phẩm";
			this.toolStripSeparator4.Name = "toolStripSeparator4";
			this.toolStripSeparator4.Size = new Size(259, 6);
			this.cmsDelProduct.Name = "cmsDelProduct";
			this.cmsDelProduct.ShortcutKeys = Keys.Delete;
			this.cmsDelProduct.Size = new Size(262, 22);
			this.cmsDelProduct.Text = "Xoá sản phẩm khỏi đơn hàng";
			this.toolStripSeparator1.Name = "toolStripSeparator1";
			this.toolStripSeparator1.Size = new Size(259, 6);
			this.cmsAddBill.Name = "cmsAddBill";
			this.cmsAddBill.Size = new Size(262, 22);
			this.cmsAddBill.Text = "Tạo mới đơn hàng";
			this.cmsEditBill.Name = "cmsEditBill";
			this.cmsEditBill.Size = new Size(262, 22);
			this.cmsEditBill.Text = "Sửa đơn hàng";
			this.toolStripSeparator2.Name = "toolStripSeparator2";
			this.toolStripSeparator2.Size = new Size(259, 6);
			this.cmsSaveBill.Enabled = false;
			this.cmsSaveBill.Name = "cmsSaveBill";
			this.cmsSaveBill.Size = new Size(262, 22);
			this.cmsSaveBill.Text = "Lưu đơn hàng";
			this.cmsPrintBill.Enabled = false;
			this.cmsPrintBill.Name = "cmsPrintBill";
			this.cmsPrintBill.Size = new Size(262, 22);
			this.cmsPrintBill.Text = "In hoá đơn";
			this.cmsDellBill.Enabled = false;
			this.cmsDellBill.Name = "cmsDellBill";
			this.cmsDellBill.Size = new Size(262, 22);
			this.cmsDellBill.Text = "Xoá hoá đơn";
			this.toolStripSeparator3.Name = "toolStripSeparator3";
			this.toolStripSeparator3.Size = new Size(259, 6);
			this.cmsSearchBill.Name = "cmsSearchBill";
			this.cmsSearchBill.Size = new Size(262, 22);
			this.cmsSearchBill.Text = "Tìm kiếm";
			this.txtTotalMoney.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.txtTotalMoney.BackColor = Color.FromArgb(255, 255, 192);
			this.txtTotalMoney.BorderStyle = BorderStyle.FixedSingle;
			this.txtTotalMoney.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.txtTotalMoney.ForeColor = Color.FromArgb(0, 0, 192);
			this.txtTotalMoney.Location = new System.Drawing.Point(832, 534);
			this.txtTotalMoney.Name = "txtTotalMoney";
			this.txtTotalMoney.ReadOnly = true;
			this.txtTotalMoney.Size = new Size(107, 22);
			this.txtTotalMoney.TabIndex = 11;
			this.txtTotalMoney.Text = "0";
			this.txtTotalMoney.TextAlign = HorizontalAlignment.Right;
			this.label7.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.label7.AutoSize = true;
			this.label7.BackColor = SystemColors.ActiveCaption;
			this.label7.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label7.Location = new System.Drawing.Point(728, 483);
			this.label7.Name = "label7";
			this.label7.Size = new Size(101, 15);
			this.label7.TabIndex = 20;
			this.label7.Text = "Cộng thành tiền :";
			this.label26.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.label26.BackColor = SystemColors.ActiveCaption;
			this.label26.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label26.Location = new System.Drawing.Point(262, 470);
			this.label26.Name = "label26";
			this.label26.Size = new Size(681, 90);
			this.label26.TabIndex = 91;
			this.txtMoney.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.txtMoney.BackColor = Color.FromArgb(255, 255, 192);
			this.txtMoney.BorderStyle = BorderStyle.FixedSingle;
			this.txtMoney.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.txtMoney.ForeColor = Color.FromArgb(0, 0, 192);
			this.txtMoney.Location = new System.Drawing.Point(832, 479);
			this.txtMoney.Name = "txtMoney";
			this.txtMoney.ReadOnly = true;
			this.txtMoney.Size = new Size(107, 22);
			this.txtMoney.TabIndex = 9;
			this.txtMoney.Text = "0";
			this.txtMoney.TextAlign = HorizontalAlignment.Right;
			this.label10.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.label10.AutoSize = true;
			this.label10.BackColor = SystemColors.ActiveCaption;
			this.label10.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label10.ForeColor = SystemColors.MenuText;
			this.label10.Location = new System.Drawing.Point(606, 537);
			this.label10.Name = "label10";
			this.label10.Size = new Size(223, 16);
			this.label10.TabIndex = 171;
			this.label10.Text = "Tổng cộng thành tiền thanh toán :";
			this.txtMoneyAfterDiscount.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.txtMoneyAfterDiscount.BackColor = Color.FromArgb(255, 255, 192);
			this.txtMoneyAfterDiscount.BorderStyle = BorderStyle.FixedSingle;
			this.txtMoneyAfterDiscount.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.txtMoneyAfterDiscount.ForeColor = Color.Blue;
			this.txtMoneyAfterDiscount.Location = new System.Drawing.Point(510, 445);
			this.txtMoneyAfterDiscount.Name = "txtMoneyAfterDiscount";
			this.txtMoneyAfterDiscount.Size = new Size(78, 22);
			this.txtMoneyAfterDiscount.TabIndex = 21;
			this.txtMoneyAfterDiscount.Text = "0";
			this.txtMoneyAfterDiscount.TextAlign = HorizontalAlignment.Right;
			this.txtDiscountOut.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.txtDiscountOut.BackColor = Color.FromArgb(255, 255, 192);
			this.txtDiscountOut.BorderStyle = BorderStyle.FixedSingle;
			this.txtDiscountOut.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.txtDiscountOut.ForeColor = Color.Blue;
			this.txtDiscountOut.Location = new System.Drawing.Point(482, 445);
			this.txtDiscountOut.Name = "txtDiscountOut";
			this.txtDiscountOut.ReadOnly = true;
			this.txtDiscountOut.Size = new Size(26, 22);
			this.txtDiscountOut.TabIndex = 20;
			this.txtDiscountOut.Text = "0";
			this.txtDiscountOut.TextAlign = HorizontalAlignment.Right;
			this.label11.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.label11.AutoSize = true;
			this.label11.BackColor = SystemColors.ActiveCaption;
			this.label11.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label11.Location = new System.Drawing.Point(415, 448);
			this.label11.Name = "label11";
			this.label11.Size = new Size(64, 16);
			this.label11.TabIndex = 173;
			this.label11.Text = "CK [ % ] :";
			this.timer2.Interval = 1000;
			this.txtTotalVAT.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.txtTotalVAT.BackColor = Color.FromArgb(255, 255, 192);
			this.txtTotalVAT.BorderStyle = BorderStyle.FixedSingle;
			this.txtTotalVAT.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.txtTotalVAT.ForeColor = Color.FromArgb(0, 0, 192);
			this.txtTotalVAT.Location = new System.Drawing.Point(832, 507);
			this.txtTotalVAT.Name = "txtTotalVAT";
			this.txtTotalVAT.ReadOnly = true;
			this.txtTotalVAT.Size = new Size(107, 22);
			this.txtTotalVAT.TabIndex = 10;
			this.txtTotalVAT.Text = "0";
			this.txtTotalVAT.TextAlign = HorizontalAlignment.Right;
			this.label13.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.label13.AutoSize = true;
			this.label13.BackColor = SystemColors.ActiveCaption;
			this.label13.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.label13.Location = new System.Drawing.Point(709, 510);
			this.label13.Name = "label13";
			this.label13.Size = new Size(120, 16);
			this.label13.TabIndex = 1561;
			this.label13.Text = "Tổng thuế GTGT :";
			this.btnDel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnDel.Enabled = false;
			this.btnDel.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnDel.Location = new System.Drawing.Point(705, 566);
			this.btnDel.Name = "btnDel";
			this.btnDel.Size = new Size(118, 30);
			this.btnDel.TabIndex = 16;
			this.btnDel.Text = "Xoá hoá đơn [ F8 ]";
			this.btnDel.UseVisualStyleBackColor = true;
			this.btnDel.Click += new EventHandler(this.btnDel_Click);
			this.btnPrint.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnPrint.Enabled = false;
			this.btnPrint.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnPrint.Location = new System.Drawing.Point(603, 566);
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.Size = new Size(102, 30);
			this.btnPrint.TabIndex = 15;
			this.btnPrint.Text = "Xem và in [ F7 ]";
			this.btnPrint.UseVisualStyleBackColor = true;
			this.btnPrint.Click += new EventHandler(this.btnPrint_Click);
			this.btnSave.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnSave.Enabled = false;
			this.btnSave.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnSave.Location = new System.Drawing.Point(485, 566);
			this.btnSave.Name = "btnSave";
			this.btnSave.Size = new Size(118, 30);
			this.btnSave.TabIndex = 12;
			this.btnSave.Text = "Lưu hoá đơn [ F6 ]";
			this.btnSave.UseVisualStyleBackColor = true;
			this.btnSave.Click += new EventHandler(this.btnSave_Click);
			this.btnEdit.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnEdit.Enabled = false;
			this.btnEdit.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnEdit.Location = new System.Drawing.Point(365, 566);
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.Size = new Size(120, 30);
			this.btnEdit.TabIndex = 14;
			this.btnEdit.Text = "Sửa hoá đơn [ F5 ]";
			this.btnEdit.UseVisualStyleBackColor = true;
			this.btnEdit.Click += new EventHandler(this.btnEdit_Click);
			this.btnAdd.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnAdd.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnAdd.Location = new System.Drawing.Point(262, 566);
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.Size = new Size(103, 30);
			this.btnAdd.TabIndex = 13;
			this.btnAdd.Text = "Thêm mới [ F4 ]";
			this.btnAdd.UseVisualStyleBackColor = true;
			this.btnAdd.Click += new EventHandler(this.btnAdd_Click);
			this.groupBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.groupBox1.Controls.Add(this.label14);
			this.groupBox1.Controls.Add(this.label12);
			this.groupBox1.Controls.Add(this.label9);
			this.groupBox1.Controls.Add(this.txtCusPayment);
			this.groupBox1.Controls.Add(this.label8);
			this.groupBox1.Controls.Add(this.txtID);
			this.groupBox1.Controls.Add(this.label6);
			this.groupBox1.Controls.Add(this.txtCusTax);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.txtCusAccountBank);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.txtCusAddress);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.txtComName);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.txtCusName);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.groupBox1.Location = new System.Drawing.Point(262, 4);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new Size(681, 131);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Thông tin";
			this.label14.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.label14.BackColor = Color.Red;
			this.label14.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label14.Location = new System.Drawing.Point(661, 103);
			this.label14.Name = "label14";
			this.label14.Size = new Size(3, 17);
			this.label14.TabIndex = 1564;
			this.label12.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.label12.BackColor = Color.Red;
			this.label12.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label12.Location = new System.Drawing.Point(661, 25);
			this.label12.Name = "label12";
			this.label12.Size = new Size(3, 17);
			this.label12.TabIndex = 1564;
			this.label9.BackColor = Color.Red;
			this.label9.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label9.Location = new System.Drawing.Point(364, 25);
			this.label9.Name = "label9";
			this.label9.Size = new Size(3, 17);
			this.label9.TabIndex = 12;
			this.txtCusPayment.Font = new Font("Arial", 9f);
			this.txtCusPayment.Location = new System.Drawing.Point(105, 101);
			this.txtCusPayment.Name = "txtCusPayment";
			this.txtCusPayment.Size = new Size(264, 21);
			this.txtCusPayment.TabIndex = 6;
			this.label8.AutoSize = true;
			this.label8.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label8.Location = new System.Drawing.Point(8, 104);
			this.label8.Name = "label8";
			this.label8.Size = new Size(94, 15);
			this.label8.TabIndex = 11;
			this.label8.Text = "HT Thanh toán :";
			this.txtID.Font = new Font("Arial", 9f);
			this.txtID.Location = new System.Drawing.Point(105, 23);
			this.txtID.Name = "txtID";
			this.txtID.Size = new Size(264, 21);
			this.txtID.TabIndex = 1;
			this.label6.AutoSize = true;
			this.label6.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label6.Location = new System.Drawing.Point(24, 25);
			this.label6.Name = "label6";
			this.label6.Size = new Size(78, 15);
			this.label6.TabIndex = 10;
			this.label6.Text = "Số hoá đơn :";
			this.txtCusTax.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.txtCusTax.Font = new Font("Arial", 9f);
			this.txtCusTax.Location = new System.Drawing.Point(455, 101);
			this.txtCusTax.Name = "txtCusTax";
			this.txtCusTax.Size = new Size(211, 21);
			this.txtCusTax.TabIndex = 7;
			this.label5.AutoSize = true;
			this.label5.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label5.Location = new System.Drawing.Point(378, 104);
			this.label5.Name = "label5";
			this.label5.Size = new Size(75, 15);
			this.label5.TabIndex = 8;
			this.label5.Text = "Mã số thuế :";
			this.txtCusAccountBank.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.txtCusAccountBank.Font = new Font("Arial", 9f);
			this.txtCusAccountBank.Location = new System.Drawing.Point(105, 75);
			this.txtCusAccountBank.Name = "txtCusAccountBank";
			this.txtCusAccountBank.Size = new Size(561, 21);
			this.txtCusAccountBank.TabIndex = 5;
			this.label4.AutoSize = true;
			this.label4.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label4.Location = new System.Drawing.Point(34, 78);
			this.label4.Name = "label4";
			this.label4.Size = new Size(68, 15);
			this.label4.TabIndex = 6;
			this.label4.Text = "Tài khoản :";
			this.txtCusAddress.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.txtCusAddress.Font = new Font("Arial", 9f);
			this.txtCusAddress.Location = new System.Drawing.Point(455, 49);
			this.txtCusAddress.Name = "txtCusAddress";
			this.txtCusAddress.Size = new Size(211, 21);
			this.txtCusAddress.TabIndex = 4;
			this.label3.AutoSize = true;
			this.label3.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label3.Location = new System.Drawing.Point(401, 52);
			this.label3.Name = "label3";
			this.label3.Size = new Size(52, 15);
			this.label3.TabIndex = 4;
			this.label3.Text = "Địa chỉ :";
			this.txtComName.Font = new Font("Arial", 9f);
			this.txtComName.Location = new System.Drawing.Point(105, 49);
			this.txtComName.Name = "txtComName";
			this.txtComName.Size = new Size(264, 21);
			this.txtComName.TabIndex = 3;
			this.label2.AutoSize = true;
			this.label2.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label2.Location = new System.Drawing.Point(52, 52);
			this.label2.Name = "label2";
			this.label2.Size = new Size(50, 15);
			this.label2.TabIndex = 2;
			this.label2.Text = "Đơn vị :";
			this.txtCusName.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.txtCusName.Font = new Font("Arial", 9f);
			this.txtCusName.Location = new System.Drawing.Point(455, 23);
			this.txtCusName.Name = "txtCusName";
			this.txtCusName.Size = new Size(211, 21);
			this.txtCusName.TabIndex = 2;
			this.label1.AutoSize = true;
			this.label1.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.label1.Location = new System.Drawing.Point(373, 26);
			this.label1.Name = "label1";
			this.label1.Size = new Size(80, 15);
			this.label1.TabIndex = 0;
			this.label1.Text = "Khách hàng :";
			this.cbbBillType.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbBillType.FormattingEnabled = true;
			this.cbbBillType.Items.AddRange(new object[]
			{
				"Hoá đơn Bán buôn",
				"Hoá đơn Bán lẻ",
				"Hoá đơn Nhập hàng"
			});
			this.cbbBillType.Location = new System.Drawing.Point(7, 93);
			this.cbbBillType.Name = "cbbBillType";
			this.cbbBillType.Size = new Size(249, 23);
			this.cbbBillType.TabIndex = 1562;
			this.cbbBillType.SelectedValueChanged += new EventHandler(this.cbbBillType_SelectedValueChanged);
			this.tabControl1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
			this.tabControl1.Controls.Add(this.tabPage1);
			this.tabControl1.Controls.Add(this.tabPage2);
			this.tabControl1.Cursor = Cursors.Hand;
			this.tabControl1.Location = new System.Drawing.Point(7, 122);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new Size(249, 449);
			this.tabControl1.TabIndex = 1563;
			this.tabPage1.Controls.Add(this.dgvBillVAT);
			this.tabPage1.Location = new System.Drawing.Point(4, 24);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Padding = new Padding(3);
			this.tabPage1.Size = new Size(241, 421);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "Hoá đơn VAT";
			this.tabPage1.UseVisualStyleBackColor = true;
			this.dgvBillVAT.AllowUserToAddRows = false;
			this.dgvBillVAT.AllowUserToDeleteRows = false;
			this.dgvBillVAT.AllowUserToOrderColumns = true;
			this.dgvBillVAT.AllowUserToResizeColumns = false;
			this.dgvBillVAT.AllowUserToResizeRows = false;
			dataGridViewCellStyle11.BackColor = Color.FromArgb(192, 255, 255);
			dataGridViewCellStyle11.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvBillVAT.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
			this.dgvBillVAT.BackgroundColor = Color.White;
			this.dgvBillVAT.BorderStyle = BorderStyle.Fixed3D;
			this.dgvBillVAT.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
			this.dgvBillVAT.Columns.AddRange(new DataGridViewColumn[]
			{
				this.billVATID,
				this.billVATDateCreate,
				this.billID
			});
			this.dgvBillVAT.ContextMenuStrip = this.ctmJustBill;
			this.dgvBillVAT.Cursor = Cursors.Hand;
			this.dgvBillVAT.Dock = DockStyle.Fill;
			this.dgvBillVAT.EnableHeadersVisualStyles = false;
			this.dgvBillVAT.Location = new System.Drawing.Point(3, 3);
			this.dgvBillVAT.Name = "dgvBillVAT";
			this.dgvBillVAT.ReadOnly = true;
			this.dgvBillVAT.RowHeadersVisible = false;
			this.dgvBillVAT.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
			this.dgvBillVAT.RowTemplate.DefaultCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvBillVAT.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
			this.dgvBillVAT.Size = new Size(235, 415);
			this.dgvBillVAT.TabIndex = 22;
			this.dgvBillVAT.CellEnter += new DataGridViewCellEventHandler(this.dgvBillVAT_CellEnter);
			this.billVATID.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
			this.billVATID.DataPropertyName = "ID";
			this.billVATID.HeaderText = "Hoá đơn";
			this.billVATID.MinimumWidth = 120;
			this.billVATID.Name = "billVATID";
			this.billVATID.ReadOnly = true;
			this.billVATDateCreate.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.billVATDateCreate.DataPropertyName = "DateCreate";
			dataGridViewCellStyle12.Format = "D";
			dataGridViewCellStyle12.NullValue = null;
			this.billVATDateCreate.DefaultCellStyle = dataGridViewCellStyle12;
			this.billVATDateCreate.HeaderText = "Ngày lập";
			this.billVATDateCreate.MinimumWidth = 88;
			this.billVATDateCreate.Name = "billVATDateCreate";
			this.billVATDateCreate.ReadOnly = true;
			this.billVATDateCreate.Width = 88;
			this.billID.DataPropertyName = "billID";
			this.billID.HeaderText = "BillID";
			this.billID.Name = "billID";
			this.billID.ReadOnly = true;
			this.billID.Visible = false;
			this.tabPage2.Controls.Add(this.dgvBill);
			this.tabPage2.Location = new System.Drawing.Point(4, 24);
			this.tabPage2.Name = "tabPage2";
			this.tabPage2.Padding = new Padding(3);
			this.tabPage2.Size = new Size(241, 421);
			this.tabPage2.TabIndex = 1;
			this.tabPage2.Text = "Hoá đơn Xuất - Nhập hàng";
			this.tabPage2.UseVisualStyleBackColor = true;
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new Size(950, 600);
			base.Controls.Add(this.dgvProduct);
			base.Controls.Add(this.tabControl1);
			base.Controls.Add(this.cbbBillType);
			base.Controls.Add(this.groupBox1);
			base.Controls.Add(this.txtTotalVAT);
			base.Controls.Add(this.btnDel);
			base.Controls.Add(this.btnPrint);
			base.Controls.Add(this.btnSave);
			base.Controls.Add(this.btnEdit);
			base.Controls.Add(this.btnAdd);
			base.Controls.Add(this.lblCountBill);
			base.Controls.Add(this.label13);
			base.Controls.Add(this.txtMoney);
			base.Controls.Add(this.txtMoneyAfterDiscount);
			base.Controls.Add(this.txtDiscountOut);
			base.Controls.Add(this.label10);
			base.Controls.Add(this.label11);
			base.Controls.Add(this.btnClose);
			base.Controls.Add(this.txtTotalMoney);
			base.Controls.Add(this.label7);
			base.Controls.Add(this.label26);
			base.Controls.Add(this.groupBox3);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			//base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
			//base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.Name = "frmVATBill";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "XUẤT HOÁ ĐƠN GTGT";
			base.Load += new EventHandler(this.frmOutputRetail_Load);
			base.KeyDown += new KeyEventHandler(this.frmOutputRetail_KeyDown);
			this.groupBox3.ResumeLayout(false);
			this.groupBox3.PerformLayout();
			((ISupportInitialize)this.dgvBill).EndInit();
			this.ctmJustBill.ResumeLayout(false);
			((ISupportInitialize)this.dgvProduct).EndInit();
			this.cmsBill.ResumeLayout(false);
			this.groupBox1.ResumeLayout(false);
			this.groupBox1.PerformLayout();
			this.tabControl1.ResumeLayout(false);
			this.tabPage1.ResumeLayout(false);
			((ISupportInitialize)this.dgvBillVAT).EndInit();
			this.tabPage2.ResumeLayout(false);
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
